<?php
$arr = array(
		0 => '3',
		2 => '2010',
		1 => array(
			0 => '5',
			1 => '4',
		),
		3 => array(
			0 => '110',
			1 => '119',
		),
	);
	

	
echo '<pre>';
print_r($arr);
echo '<hr>';
print_r(array_convert($arr));	
	
	
	
/**
 * 数组转换
 */
function array_convert($arr) {
	//验证数组元素个数是否相等
	$count = 0;
	foreach ($arr as $row) {
		if(is_array($row)) {
			if($count == 0) {
				$count = count($row);
			} elseif($count != count($row)) {
				 return false;
			}
		}
	}
	
	//新数组
	$arr_new = array();
	foreach ($arr as $key => $row) {
		for($i = 0; $i < $count; $i++) {
			$arr_new[$i][$key] = is_array($row) ? $row[$i] : $row;
		}
	}
	
	return $arr_new;
}
?>